import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import uView from "./uni_modules/uview-ui";
Vue.use(uView);
import './uni_modules/uview-ui/index.scss'

// 加载 element 组件库
import ElementUI from 'element-ui'
 
// 加载 element 组件库的样式
import 'element-ui/lib/theme-chalk/index.css'
 
// 全局注册 element 组件库
Vue.use(ElementUI)


/**
 * 如何引入 uview-ui 并全局使用
 * https://blog.csdn.net/qq_43229233/article/details/134824240
 */

// 签名组件
import SignCanvas from "sign-canvas";
Vue.use(SignCanvas);


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif